package com.ruoyi.machine.advanced.maintain.register.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 设备保养记录表，储存设备保养记录信息
 * machine_maintain_register
 */
public class MaintainRegister extends BaseEntity {
    /**
     * 保养登记编号
     */
    @NotNull(message = "保养登记编号不能为空")
    @ApiModelProperty(value = "保养登记编号", required = true)
    private String maintainRegisterId;
    /**
     * 机器编号
     */
    @NotNull(message = "机器编号不能为空")
    @ApiModelProperty(value = "机器编号", required = true)
    private String machineId;
    /**
     * 机器名称
     */
    private String machineName;
    /**
     * 保养者编号
     */
    @NotNull(message = "保养者编号不能为空")
    @ApiModelProperty(value = "保养者编号", required = true)
    private String staffId;
    /**
     * 保养者名称
     */
    private String staffName;
    /**
     * 保养类型
     */
    @NotNull(message = "保养类型不能为空")
    @ApiModelProperty(value = "保养类型", required = true)
    private String maintainRegisterType;
    /**
     * 保养内容
     */
    private String maintainRegisterContent;
    /**
     * 保养时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp maintainRegisterTime;
    /**
     * 备注
     */
    private String remark;

    public String getMaintainRegisterId() {
        return maintainRegisterId;
    }

    public void setMaintainRegisterId(String maintainRegisterId) {
        this.maintainRegisterId = maintainRegisterId;
    }

    public String getMachineId() {
        return machineId;
    }

    public void setMachineId(String machineId) {
        this.machineId = machineId;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getMaintainRegisterType() {
        return maintainRegisterType;
    }

    public void setMaintainRegisterType(String maintainRegisterType) {
        this.maintainRegisterType = maintainRegisterType;
    }

    public String getMaintainRegisterContent() {
        return maintainRegisterContent;
    }

    public void setMaintainRegisterContent(String maintainRegisterContent) {
        this.maintainRegisterContent = maintainRegisterContent;
    }

    public Timestamp getMaintainRegisterTime() {
        return maintainRegisterTime;
    }

    public void setMaintainRegisterTime(Timestamp maintainRegisterTime) {
        this.maintainRegisterTime = maintainRegisterTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
